home *** CD-ROM | disk | FTP | other *** search
- /* sdnlogon.c by bill buckels 1990 */
-
- unsigned char SDNLOGON[]={
- 255, 32,244, 32,202,205,251, 32,222,205,235, 32,236,205,221, 32,193,222,
- 196,223,193,205,193,219,194,223,193,221,193,205,193,219,193,221,194,205,
- 193,221,203,205,193,221,194,205,193,219,193,221,195,205,193,221,211,205,
- 195, 32,193,221,213, 32,193,219,196,220,193,205,193,219,194,205,193,219,
- 193,205,193,221,193,205,193,220,193,205,193,221,193,205,193,222,193,223,
- 193,205,193,223,193,219,193,223,195,205,193,221,195,205,193,219,193,221,
- 195,205,193,219,193,205,193,219,194,223,193,221,193,205,193,219,194,223,
- 193,221,193,205,193,219,193,205,193,219,193,221,193,205,193,222,195,223,
- 194,205,193,221,194, 32, 40,115,109, 41,206, 32,195,205,195,219,193,205,
- 193,219,193,221,193,205,193,219,193,205,193,219,193,221,193,205,193,219,
- 193,221,193,205,193,222,193,223,194,205,193,219,193,221,194,205,193,221,
- 196,205,193,222,193,221,193,205,193,221,193,205,193,219,193,205,193,219,
- 193,221,193,205,193,221,193,205,193,219,193,221,193,219,193,221,193,205,
- 193,219,193,220,193,223,194,205,194,223,194,219,194,205,193,221,193,205,
- 210, 32,194,205,193,219,193,220,195,219,193,205,194,219,193,220,193,221,
- 193,205,193,219,193,221,193,205,193,219,193,221,193,205,194,219,193,221,
- 193,205,193,219,193,221,193,205,193,221,198,205,194,219,193,205,193,219,
- 193,221,193,205,194,219,193,220,193,221,193,205,193,219,193,205,193,222,
- 193,220,193,205,193,219,193,205,193,219,193,221,193,205,193,219,193,220,
- 194,219,194,205,193,220,194,205,208, 32,255,205,194,205,207, 32,255,205,
- 194,205,206, 32,194,223,193,219,194,223,204,205,193,222,196,223,193,205,
- 193,219,194,223,193,221,193,205,193,219,193,221,194,205,193,221,194,205,
- 193,222,193,219,193,223,193,219,218,205,209, 32,194,219,194,205,193,219,
- 196,205,193,222,193,223,196,205,193,219,196,220,193,205,193,219,194,205,
- 193,219,193,205,193,219,193,205,193,220,193,205,193,221,195,205,193,219,
- 193,205,193,219,193,221,193,219,194,223,193,221,193,205,193,219,194,223,
- 193,221,193,205,194,223,193,219,193,223,193,205,193,222,193,223,194,205,
- 193,219,193,223,193,219,193,205,193,223,193,219,193,223,208, 32,194,219,
- 32,193,205,193,219,193,223,193,219,193,221,193,205,193,222,193,223,
- 198,205,195,219,193,205,193,219,193,221,193,205,193,219,193,205,193,219,
- 193,221,193,205,193,219,193,221,195,205,193,219,194,223,193,205,193,219,
- 193,221,193,219,193,221,193,205,193,219,193,221,193,205,193,221,195,205,
- 193,219,193,221,193,205,193,222,193,223,194,205,193,219,194,205,194, 32,
- 193,219,193,221,208, 32,194,219,194, 32,193,219,193,205,193,219,193,221,
- 193,205,194,219,193,221,195,205,193,219,193,220,195,219,193,205,194,219,
- 193,220,193,221,193,205,193,219,193,221,193,205,193,219,193,221,194,205,
- 193,222,193,219,193,221,194,205,193,219,193,205,193,222,193,220,193,205,
- 194,219,193,220,193,221,193,205,193,222,193,220,193,219,193,221,193,205,
- 194,219,193,221,193,205,193,219,193,220,193,219,193,221, 32,193,219,
- 193,221,217, 32,236,220,214, 32,193,218,255,205,200,205,191,199, 32,
- 179,197, 32, 73,110,116,101,114,110, 97,116,105,111,110, 97,108, 32,
- 83, 68, 78,101,116, 47, 87,111,114,107,115, 33, 32, 80,114,111,106,
- 101, 99,116, 32, 77, 97,110, 97,103,101,114, 32, 97,116, 32, 83, 68,
- 78, 32, 80,114,111,106,101, 99,116, 32,194, 66, 83,197, 32,179,199, 32,
- 179,197, 32, 83, 68, 78,101,119,115, 33, 32, 97,110,100, 32, 83, 68,
- 78,101,116, 47, 87,111,114,107,115, 33,195, 32, 84,104,101, 32, 83,
- 104, 97,114,101,119, 97,114,101, 32, 68,105,115,116,114,105, 98,117,
- 116,105,111,110, 32, 78,101,116,119,111,114,107,197, 32,179,199, 32,
- 193,192,255,205,200,205,193,217,211, 32, 49, 50,194, 48, 47, 50, 52,
- 194, 48, 47, 57, 54,194, 48, 32, 72, 83, 84, 32, 45, 32, 50, 52, 32,
- 72,111,117,114,115, 32, 45, 32, 83,121,115, 79,112, 32, 82, 97,121,
- 32, 75, 97,108,105,194,115,255, 32,255, 32,255, 32,255, 32,255, 32,
- 255, 32,231, 32,255, 7,209, 7,237, 15,227, 3,246, 15,218, 3,253, 15,
- 211, 3,255, 15,198, 15,203, 3,255, 15,204, 15,197, 3,255, 15,199, 15,
- 202, 3,255, 15,200, 15,201, 3,255, 15,201, 15,200, 3,255, 15,201, 15,
- 200, 3,255, 15,200, 15,201, 3,255, 7,201, 7,200, 3,255, 7,201, 7,
- 200, 3,255, 7,201, 7,200, 3,253, 1,211, 3,195, 1,255,127,202,127,
- 196, 3,195, 15,255,127,202,127,196, 3,195, 15,255,127,202,127,196, 3,
- 195, 15,255,127,202,127,206, 3,245, 11,255, 3,226, 3,215, 15, 11,
- 255, 3,255, 3,202, 3,255, 0,255, 0,226, 0,
- 0}; /* terminator */
-
-
- struct regs{
- int AX;
- int BX;
- int CX;
- int DX;
- int SI;
- int DI;
- int DS;
- int ES;
- }inregs,outregs;
-
-
- #define SCREENSIZE 4000
- unsigned int SCREENSEG= 0xb000;
-
- /* this macro converts a base and offset to a far pointer */
- #define MK_FP(seg,off) ((char far *)(((long)(seg) << 16) | (off)))
-
- #define TERMINATOR 1
-
- void showpic(int argc, unsigned char *argv,unsigned char attr)
- {
-
- unsigned int byteoff=0,secondoff=1,packet;
- unsigned char byte,bytecount;
- int wordcount,target;
- static char far *crt;
-
- target = argc-TERMINATOR;
- crt = MK_FP(SCREENSEG,0x0000);
-
- wordcount=0;
- do{ bytecount=1; /* start with a seed count */
- byte=argv[wordcount];
- wordcount++;
- /* check to see if its raw */
- if(0xC0 == (0xC0 &byte)){ /* if its not, run encoded */
- bytecount= 0x3f &byte;
- byte=argv[wordcount];
- wordcount++;
- }
- for(packet=0;packet<bytecount;packet++){
- if(byteoff<SCREENSIZE){
- if(attr==0)crt[byteoff]=byte;
- byteoff+=2;
- }
- else{
- if(attr==0)crt[secondoff]=byte;
- else crt[secondoff]=attr;
- secondoff+=2;
- }
- }
-
- }while(wordcount<target);
- }
-
- main()
- {
- unsigned char attr=0;
- sysint(0x11,&inregs,&outregs); /* get equipment list from the bios */
- /* get display type (bits 4 and 5 of ax) */
- if ((outregs.AX & 0x30) < 0x30)SCREENSEG=0xb800;
-
- /* clearscreen and turn cursor off */
- #asm
- mov ah,6
- mov al,0
- mov cx,0
- mov dh,24
- mov dl,79
- mov bh,0eh
- int 10h
- xor ax,ax
- mov ah,1
- mov cx,2000h
- int 10h
- #endasm
-
- /* display the picture */
-
- showpic(sizeof(SDNLOGON),SDNLOGON,attr);
- attr=255;
-
- do{ attr--;
- showpic(sizeof(SDNLOGON),SDNLOGON,attr);
- }
- while(attr>0);
-
- /* wait for a keypress, clear the screen, and restore cursor */
- #asm
- xor ax,ax
- xor dx,dx
- int 16h
- mov ah,6
- mov al,0
- mov cx,0
- mov dh,24
- mov dl,79
- mov bh,0eh
- int 10h
- xor ax,ax
- mov ah,1
- mov cx,0607h
- int 10h
- #endasm
- exit(0);
-
-
- }
-
-
-